package com.sjz.myfrist;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

/***
 *   Activity 之间传送数据
 */
public class ActReceiveActivity extends AppCompatActivity  {

    private TextView v_receive;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_receive);

        v_receive = findViewById(R.id.act_receive_tv_receive);
        //从上一个页面传来的意图中获取包裹
        Bundle bundle = getIntent().getExtras();
        String request_content = bundle.getString("request_content");
        String desc = String.format("收到请求消息:\n内容为:%s",request_content);
        v_receive.setText(desc);

    }

}